<?php

$router->group(['namespace' => 'Internal', 'prefix'=>'internal'], function() use ($router) {
    $router->get('/courses', 'CourseController@index');

    $router->get('/courses/{courseId}', 'CourseController@show');

    $router->get('/courses/level/{level}', 'CourseController@getByLevel');


    $router->get('/courses/lessons/first', 'LessonController@firstLesson');
    $router->get('/courses/{courseId}/lessons', 'LessonController@index');
    $router->get('/lessons/{lessonId}', 'LessonController@show');
    $router->get('/lessons/{lessonId}/sources', 'LessonController@getAllSources');
    $router->get('/lessons/{lessonId}/sections/{sectionId}', 'LessonController@getSection');

    $router->post('/tags', 'TagController@index');
    $router->post('/knowledge', 'KnowledgeController@index');
    $router->post('/lessons', 'LessonController@getByLessonIds');

    $router->get('/levels', 'LevelController@index');

    $router->get('/series/{seriesId}', 'SeriesController@show');

    $router->get('/courses/{courseId}/lesson-total', 'LessonController@lessonTotal');

    $router->post('/lessons/{lessonId}/studied-count', 'LessonController@incrStudiedCount');
});